package com.xxxx.mq;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
//@RabbitListener(queues = "mqContext")
public class Consumer {

    @RabbitHandler
    public void consumerMqText(String mqText) {
        System.out.println("mqText:" + mqText);
    }
}
